﻿@model Web.Areas.Admin.Models.ChangePasswordModel
           
@section scripts{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    }
@{
    Html.EnableClientValidation(true);
    using (Ajax.BeginForm(new CustomAjaxOptions()))
    {  
    <table class="default">
        <thead>
            <tr>
                <th colspan="2">
                    修改密码
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td align="right" style=" width:30%">
                    原始密码:
                </td>
                <td>
                    @Html.PasswordFor(item=>item.OldPassword)
                    @Html.ValidationMessageFor(item=>item.OldPassword)
                </td>
            </tr>
            <tr>
                <td align="right">
                    新密码:
                </td>
                <td>
                    @Html.PasswordFor(item=>item.NewPassword)
                    @Html.ValidationMessageFor(item => item.NewPassword)
                </td>
            </tr>
            <tr>
                <td align="right">
                    确认新密码:
                </td>
                <td>
                    @Html.PasswordFor(item=>item.ConfirmPassword)
                    @Html.ValidationMessageFor(item => item.ConfirmPassword)
                </td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td align="right">
                </td>
                <td>
                    <input type="submit" value="修改密码" class="ui-state-default button" />
                </td>
            </tr>
        </tfoot>
    </table>
    }
}
